<?php
	$local = false;
	if($local)
	{
		$DBHOST = "localhost";
		$DBUSER = "root";
		$DBPASS = "root";
		$DBNAME = "hurmpf51";
		$home = "http://localhost/hurmpf6s/";
	}
	else
	{
		$DBHOST = "sql.free.fr";
		$DBUSER = "hurmpf";
		$DBPASS = "pulopu";
		$DBNAME = "hurmpf";
		$home = "http://hurmpf.free.fr/";
	}
	
	setlocale (LC_TIME, "fr_FR") || setlocale (LC_TIME, "fr");
	
	$display_width = 700;
	$display_height = 500;
	$tiny_width = 150;
	$tiny_height = 150;
	
	function h() { global $home; echo $home; }
	
	function dbconnect()
	{
		global $DBHOST, $DBUSER, $DBPASS, $DBNAME;
		mysql_connect($DBHOST, $DBUSER, $DBPASS) or die(mysql_error());
		mysql_select_db($DBNAME) or die(mysql_error());
		mysql_query("SET NAMES 'UTF8'");
	}
?>